dfu:usb:fix: Read the "filesize" environment variable only when file read
authorŁukasz Majewski <[email protected]>
Thu, 23 Aug 2012 23:33:56 +0000 (23:33 +0000)
committerMarek Vasut <[email protected]>
Thu, 20 Sep 2012 22:05:00 +0000 (00:05 +0200)
commit81c1d7b605e1a48d3c02248c5e51fabcf42f5014
tree8db3e0f096f30a5a324a4bdcc57f535717faa5fb
parent43e6627259da3900a73f40fb2fe3a6f106c0e2d7
dfu:usb:fix: Read the "filesize" environment variable only when file read

The "filesize" environment variable shall be read only when relevant
file is read.

Signed-off-by: Lukasz Majewski <[email protected]>
Signed-off-by: Kyungmin Park <[email protected]>
Reviewed-by: Marek Vasut <[email protected]>
drivers/dfu/dfu_mmc.c